export interface Action {
    type: string;
    meta?: any;
    payload?: {
        fetch: string;
        mandatory?: boolean;
        paging?: boolean;
        pageListData?: string;
        url?: string;
        cancelFetch?: boolean;
        reason?: string;
        resetPending?: boolean;
        fetchInfoKey?: string;
        uid?: number;
    };
    result?: {
        no: number;
        err?: any;
        data?: any;
    };
    UUID?: any;
    ignoreFetchPromise?: boolean;
}

export interface HardwareBackAction extends Action {
    back: {
        appExit?: boolean;
        ignore?: boolean;
    };
}

export const HardwareBackType = '@@物理返回键';

export interface ActionParam {
    UUID?: any;
    mandatory?: boolean;
}

export const defaultActionParam = {
    UUID: undefined,
    mandatory: false,
};